home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dlarnv.z / dlarnv
Encoding:
Text File  |  2002-10-03  |  3.1 KB  |  133 lines

  1.  
  2.  
  3.  
  4. DDDDLLLLAAAARRRRNNNNVVVV((((3333SSSS))))                                                          DDDDLLLLAAAARRRRNNNNVVVV((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DLARNV - return a vector of n random real numbers from a uniform or
  10.      normal distribution
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE DLARNV( IDIST, ISEED, N, X )
  14.  
  15.          INTEGER        IDIST, N
  16.  
  17.          INTEGER        ISEED( 4 )
  18.  
  19.          DOUBLE         PRECISION X( * )
  20.  
  21. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  22.      These routines are part of the SCSL Scientific Library and can be loaded
  23.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  24.      directs the linker to use the multi-processor version of the library.
  25.  
  26.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  27.      4 bytes (32 bits). Another version of SCSL is available in which integers
  28.      are 8 bytes (64 bits).  This version allows the user access to larger
  29.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  30.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  31.      only one of the two versions; 4-byte integer and 8-byte integer library
  32.      calls cannot be mixed.
  33.  
  34. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  35.      DLARNV returns a vector of n random real numbers from a uniform or normal
  36.      distribution.
  37.  
  38. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  39.      IDIST   (input) INTEGER
  40.              Specifies the distribution of the random numbers:
  41.              = 1:  uniform (0,1)
  42.              = 2:  uniform (-1,1)
  43.              = 3:  normal (0,1)
  44.  
  45.      ISEED   (input/output) INTEGER array, dimension (4)
  46.              On entry, the seed of the random number generator; the array
  47.              elements must be between 0 and 4095, and ISEED(4) must be odd.
  48.              On exit, the seed is updated.
  49.  
  50.      N       (input) INTEGER
  51.              The number of random numbers to be generated.
  52.  
  53.      X       (output) DOUBLE PRECISION array, dimension (N)
  54.              The generated random numbers.
  55.  
  56. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  57.      This routine calls the auxiliary routine DLARUV to generate random real
  58.      numbers from a uniform (0,1) distribution, in batches of up to 128 using
  59.      vectorisable code. The Box-Muller method is used to transform numbers
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDLLLLAAAARRRRNNNNVVVV((((3333SSSS))))                                                          DDDDLLLLAAAARRRRNNNNVVVV((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      from a uniform to a normal distribution.
  75.  
  76.  
  77. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  78.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  79.  
  80.      This man page is available only online.
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.